package serivce;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import basic.EntityForm;

import struts.form.Action;
import struts.form.ActionForm;

public class StrutsAction  implements  Action {

	public String execute(HttpServletRequest request,
			HttpServletResponse response, ActionForm form,
			Map<String, String> actionForward) {
		
		 String url="fail";
		 EntityForm  entity=(EntityForm)form;
		 if("yuzhijian".equals(entity.getName())){
			 url="sucess";
		 }
		
		
		return actionForward.get(url);
		
	}

}
